import AppPanel from '../app-panel/AppPanel.vue';

export default {
  title: '西安集贤/面板',
  component: AppPanel,
  parameters: {
    docs: {
      description: {
        component: `请配合 <span style="font-weight: bold;font-size: 14px;color: grey">vue、tailwindcss</span> 使用`
      }
    }
  },
  argTypes: {
    title: {description: '标题'},
    direction: {
      description: `方向 <span style="font-weight: bold;font-size: 12px;color: grey">[ left right ]</span>`,
      control: 'select',
      options: ['left', 'right']
    },
    default: {description: '整个下部分'},
  }
};

export const Basic = {
  name: '基本使用',
  render: (args) => ({
    components: {AppPanel},
    setup() {
      return {args};
    },
    template: `
      <AppPanel v-bind="args">
        <div
          style="width: 200px;height: 150px;display: flex;flex-flow:column;justify-content:center;align-items: center">
          <div>
            <span style="font-size: 28px;font-weight: bold">78</span>
            <span style="font-size: 10px;margin-left: 4px">个</span>
          </div>
          <div style="font-size: 12px">设备总数</div>
        </div>
      </AppPanel>`,
  }),
  args: {
    title: '面板标题',
    direction: 'left',
  }
};